package com.gzx.plugin.website.protocol.mapper;

import com.gzx.plugin.website.protocol.entity.GzxMediationProtocol;
import com.gzx.plugin.website.protocol.vo.GzxMediationProtocolVo;
import org.apache.ibatis.annotations.Insert;
import vip.xiaonuo.common.mapper.BaseMapperPlus;

/**
 * @author zjt
 * @description
 * @date 2025/4/15 15:52
 */
public interface GzxMediationProtocolMapper extends BaseMapperPlus<GzxMediationProtocol, GzxMediationProtocolVo> {

    @Insert("<script>" +
            "insert into gzx_mediation_protocol (" +
            "    company_name, " +
            "    prov_abbr, " +
            "    debtor_name, " +
            "    debtor_card_id, " +
            "    mediation_num, " +
            "    document_number, " +
            "    platform, " +
            "    product, " +
            "    loan_amount, " +
            "    case_date, " +
            "    official_website, " +
            "    official_seal_url, " +
            "    we_chat_official_account, " +
            "    mediator_name, " +
            "    mediation_person_phone, " +
            "    mediation_center_phone, " +
            "    supervision_phone, " +
            "    mediation_letter_date, " +
            "    content, " +
            "    expiry_date, " +
            "    config_id, " +
            "    tenant_id, " +
            "    create_user, " +
            "    create_time" +
            ") values ${valSql}" +
            "</script>")
    void insertBatchByValSql(String valSql);
}
